function Taps(el, type = "click") {
    this.ele = document.querySelector(el);
    this.btns = this.ele.querySelectorAll("ul>li");
    this.boxs = this.ele.querySelectorAll("ol>li");
    Taps.prototype.init = function () {
        this.btns.forEach((element, index) => {
            element.addEventListener(type, () => {
                for (let i = 0; i < this.btns.length; i++) {
                    this.btns[i].classList.remove("active");
                    this.boxs[i].classList.remove("active");
                }
                this.btns[index].classList.add("active");
                this.boxs[index].classList.add("active");
            });
        });
    };
    this.init();
}
